/**
 * 用户的路由模块
 */
const express = require('express');
const router = express.Router();// 创建路由对象
// 导入用户路由处理函数模块
const statusHandler = require('../router_handler/statusmon.js');

//新增学员信息
router.post('/addStudent', statusHandler.addStudent);

//查询学员信息
router.get('/getStudent', statusHandler.getStudent);

// 修改学员信息
router.put(`/editStudent/:id`, statusHandler.editStudent)

// 删除学员
router.delete('/deleteStudent', statusHandler.deleteStduent);

// 模糊查询学员
router.post('/obscureStudent', statusHandler.obscureStudent);

//模糊查询咨询
router.post('/searchStudent',statusHandler.searchStudent);

//模糊查训--学校
router.post('/searchSchool',statusHandler.searchSchool);

//模糊查训--班级
router.post('/searchClass',statusHandler.searchClass);

//模糊查训--状态
router.post('/searchState',statusHandler.searchState);

//模糊查训--时间
router.post('/searchTime',statusHandler.searchTime);


// 将路由对象共享出去
module.exports = router;